package com.study.config;

import com.study.aop.LogAspect;
import com.study.entity.AopTest;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * @author Kevin Liu
 * @date 2020/8/18 上午10:52
 */
@Configuration
@EnableAspectJAutoProxy
public class AopConfig {

	@Bean
	public AopTest aopTest(){
		return new AopTest();
	}

	@Bean
	public LogAspect logAspect(){
		return new LogAspect();

	}

}
